package com.itheima.advantagesup.mapper;

import com.itheima.advantagesup.entity.SysMenu;
import com.itheima.advantagesup.vo.MenuVO;
import com.itheima.advantagesup.entity.SysMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuMapper {

    /**
     * 更新菜单
     *
     * @param menu 菜单
     */
    void updateMenu(SysMenu menu);

    /**
     * selete sys菜单通过id
     *
     * @param id id
     * @return {@link SysMenu}
     */
    @Select("select * from sys_menu where id = #{id}")
    SysMenu seleteSysMenuById(Integer id);
}
